package com.example.mapinformationandroid.Model;

import android.net.Uri;

import java.io.Serializable;

public class Information implements  Serializable{
    protected int id;
    protected String title;
    protected String content;
    protected String picture;
    protected int create_user_id;
    protected int support;
    protected int unsupported;
    protected int postcodes;
    protected String place;
    protected String coordinate_x;
    protected String coordinate_y;
    protected int state;
    protected String update_at;
    protected String create_at;
    //图片上传路径
    protected String bitmap_path;

    //图片本地路径
    protected String bitmap_local_path;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public int getCreate_user_id() {
        return create_user_id;
    }

    public void setCreate_user_id(int create_user_id) {
        this.create_user_id = create_user_id;
    }

    public int getSupport() {
        return support;
    }

    public void setSupport(int support) {
        this.support = support;
    }

    public int getUnsupported() {
        return unsupported;
    }

    public void setUnsupported(int unsupported) {
        this.unsupported = unsupported;
    }

    public int getPostcodes() {
        return postcodes;
    }

    public void setPostcodes(int postcodes) {
        this.postcodes = postcodes;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getCoordinate_x() {
        return coordinate_x;
    }

    public void setCoordinate_x(String coordinate_x) {
        this.coordinate_x = coordinate_x;
    }

    public String getCoordinate_y() {
        return coordinate_y;
    }

    public void setCoordinate_y(String coordinate_y) {
        this.coordinate_y = coordinate_y;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getUpdate_at() {
        return update_at;
    }

    public void setUpdate_at(String update_at) {
        this.update_at = update_at;
    }

    public String getCreate_at() {
        return create_at;
    }

    public void setCreate_at(String create_at) {
        this.create_at = create_at;
    }

    public String getBitmap_path() {
        return bitmap_path;
    }

    public void setBitmap_path(String bitmap_path) {
        String []list = bitmap_path.split("/");

        this.bitmap_path = list[list.length-1];
    }

    public String getBitmap_local_path() {
        return bitmap_local_path;
    }

    public void setBitmap_local_path(String bitmap_local_path) {
        this.bitmap_local_path = bitmap_local_path;
    }
}


